home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.06 Jun 93 / TReportPrinter / TDemoDocument.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-01  |  790 b   |  27 lines  |  [TEXT/MPS ]

  1. #ifndef __DEMODOCUMENT__
  2.  
  3. #define __DEMODOCUMENT__    1
  4.  
  5. #include <MacApp.h>
  6. #include <UFileBasedDocument.h>
  7. #include "TReportPrinter.h"
  8.  
  9. const    short    kMainView = 1000;            // main view res. ID
  10. const    IDType    kNumberOfLines = 'VW06';
  11.  
  12. class TDemoDocument: public TFileBasedDocument {
  13.     private:
  14.         long    fLineCount;
  15.         TNumberText *fLineCountText;
  16.         TReportPrinter    *fReportPrinter;
  17.     public:
  18.         virtual pascal void Initialize();
  19.         virtual pascal void IDemoDocument(TFile* itsFile, OSType itsScrapType);
  20.         virtual pascal void DoMakeViews(Boolean forPrinting);
  21.         virtual pascal void DoRead(TFile *aFile, Boolean forPrinting);
  22.         virtual pascal void DoWrite(TFile* aFile, Boolean makingCopy);
  23.         virtual pascal void DoMenuCommand(CommandNumber aCommandNumber);
  24.         virtual pascal void DoSetupMenus();
  25. };
  26.  
  27. #endif